package com.fjec.activity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 006.秒杀活动用户参与表
 * </p>
 *
 * @author admin
 * @since 2020-09-18
 */
@TableName("biz_activity_seckill_user")
@Data
public class BizActivitySeckillUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 秒杀活动Id
     */
    @TableField("SeckillId")
    private Long seckillId;

    /**
     * 参与用户Id
     */
    @TableField("UserId")
    private Long userId;

    /**
     * 获得礼物Id
     */
    @TableField("GiftId")
    private Long giftId;

    /**
     * 获得数量
     */
    @TableField("GiftNum")
    private Integer giftNum;

    /**
     * 参与用户信息 shopName:xxxxxxxxxxxxxxxxxxxxxx
     */
    @TableField("UserInfo")
    private String userInfo;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    @Override
    public String toString() {
        return "BizActivitySeckillUser{" +
            "id=" + id +
            ", seckillId=" + seckillId +
            ", userId=" + userId +
            ", giftId=" + giftId +
            ", giftNum=" + giftNum +
            ", userInfo=" + userInfo +
            ", createTime=" + createTime +
        "}";
    }
}
